import CryptoJS from 'crypto-js';

const key = '852654123698ss26';
const decrypt = (string = '') => {
  const k = CryptoJS.enc.Utf8.parse(key);
  const decrypted = CryptoJS.AES.decrypt(string, k, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
  return decrypted.toString(CryptoJS.enc.Utf8);
};

export default {
  decrypt,
};
